package cn.com.ns.controller;


import cn.com.ns.annotation.Controller;
import cn.com.ns.annotation.RequestMapping;
import cn.com.ns.annotation.ResponseBody;

@Controller
public class TestController1 {
	
	@RequestMapping(value = "/test4")
	@ResponseBody
	public TestObj1 test4(){
		TestObj1 obj = new TestObj1();
		obj.setObj1("1");
		obj.setObj2("2");
		return obj;
	}
}
class TestObj1{
	private String obj1;
	
	private String obj2;

	public String getObj1() {
		return obj1;
	}

	public void setObj1(String obj1) {
		this.obj1 = obj1;
	}

	public String getObj2() {
		return obj2;
	}

	public void setObj2(String obj2) {
		this.obj2 = obj2;
	}
	
	
}